package com.ittony.model.process;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ittony.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "Process")
@TableName("oa_process")
public class Process extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ApproveCode")
    @TableField("process_code")
    private String processCode;

    @ApiModelProperty(value = "UserId")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "ApproveTemplateId")
    @TableField("process_template_id")
    private Long processTemplateId;

    @ApiModelProperty(value = "ApproveTypeId")
    @TableField("process_type_id")
    private Long processTypeId;

    @ApiModelProperty(value = "Title")
    @TableField("title")
    private String title;

    @ApiModelProperty(value = "Description")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "FormValue")
    @TableField("form_values")
    private String formValues;

    @ApiModelProperty(value = "ProcessId")
    @TableField("process_instance_id")
    private String processInstanceId;

    @ApiModelProperty(value = "CurrentApprover")
    @TableField("current_auditor")
    private String currentAuditor;

    @ApiModelProperty(value = "Status(0:Default 1:Ing 2:Pass -1:Deny)")
    @TableField("status")
    private Integer status;
}
